From 5198d3dc25d302781df0e50b63a92af839666023 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Thu, 26 Sep 2024 15:13:04 -0500 Subject: [PATCH] The "label" element should not be used without the "for" attribute --- src/pgwui_common/templates/lib.mak | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/pgwui_common/templates/lib.mak b/src/pgwui_common/templates/lib.mak index 8f33771..ba20aaa 100644 --- a/src/pgwui_common/templates/lib.mak +++ b/src/pgwui_common/templates/lib.mak @@ -39,14 +39,13 @@ ## Table data <%def name="td_label(for_id=None)"> - - <% - for_attr = '' - if for_id is not None: - for_attr = f'for="{for_id}"' - %> - - + + % else: + >${capture(caller.body) | n, trim}: + % endif <%def name="td_input(tab_index, tab_inc=1, colspan=1, clas='')"> -- 2.34.1